-
Notifications
You must be signed in to change notification settings - Fork 35
Make LDF <: AbstractModel #937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Benchmark Report for Commit a22771dComputer Information
Benchmark Results
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #937 +/- ##
=======================================
Coverage 82.91% 82.91%
=======================================
Files 36 36
Lines 3962 3962
=======================================
Hits 3285 3285
Misses 677 677 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Pull Request Test Coverage Report for Build 15240168224Details
💛 - Coveralls |
I had some issue in JuliaBUGS some time ago: if I mark and if I don't it will hit https://github.com/TuringLang/AbstractMCMC.jl/blob/ececa17d5c354aa3279e7ce970ac768751c22fcf/src/logdensityproblems.jl#L94-L108 because the former type is more specific. Somehow here feels like the opposite. A bit confused. |
The dispatch chain can be very confusing --- in the case of Turing samplers, they only have I think the main issue with going down the second path (via LogDensityModel) is that that becomes an opaque wrapper around the LDF and I think the samplers tend to need more information about what's inside the LDF. For example HMCState carries a varinfo around with it https://github.com/TuringLang/Turing.jl/blob/1a7062765ceb6942a4d4eae609ece401ff13d0a6/src/mcmc/hmc.jl#L5-L18 which doesn't make sense unless you know you're sampling from |
Make sense, thanks Penny! |
See TuringLang/Turing.jl#2555 -- this is one of the necessary steps, or else you'll get errors like
This really shouldn't change anything in DynamicPPL.